import { request } from "@@/plugin-request"
const Api = {
    listPage:'/factory/listPageDb',
    addDb:'/factory/addDb',
    connectivityTest:'/factory/connectivityTest',
    delDb:'/factory/delDb',
    updateDb:'/factory/updateDb',
    updateStatus:'/factory/updateStatus'
}
//查询列表
export const getData = (data:any)=>request(Api.listPage,{
    method:'POST',
    data
})
//新增数据库
export const addDb = (data:any)=>request(Api.addDb,{
    method:'post',
    data
})
//连通测试
export const connectivityTest = (data:any)=>request(Api.connectivityTest,{
    method:'post',
    data
})
//逻辑删除
export const delDb = (data:any)=>request(Api.delDb,{
    method:'post',
    data
})
//修改
export const updateDb = (data:any)=>request(Api.updateDb,{
    method:'post',
    data
})
//修改状态
export const updateStatus = (data:any)=>request(Api.updateStatus,{
    method:'get',
    params:data
})
